module.exports = function (mainWindow) {
    let opacity = 0
    let timer = setInterval(function () {
        opacity += 0.2
        if (mainWindow && !mainWindow.isDestroyed()) {
            mainWindow.setOpacity(opacity)
        }else{
            clearInterval(timer)
        }
        if(opacity >= 1) clearInterval(timer)
    }, 100)
}
